Count Property

Task Parallel System.Threading

Gets the number of items contained in the BlockingCollection<(Of <(T>)>).

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public ReadOnly Property Count As Integer
C#
public int Count { get; }

Field Value

The number of items contained in the BlockingCollection<(Of <(T>)>).

Implements

ICollection..::.Count

Exceptions

ExceptionCondition
System..::.ObjectDisposedExceptionThe BlockingCollection<(Of <(T>)>) has been disposed.

See Also